package com.module02.demo03;

import javax.naming.NamingEnumeration;

public class WorkTest {

    public static void main(String[] args) {

        PhoneCard phoneCard = new PhoneCard(123,123456,99.9);
        phoneCard.cardInfo();
        System.out.println("-----------------------------------------------------------------");
        Menu m1 = new SubCallMenu(39,200,50);
        m1.show();
        System.out.println("-----------------------------------------------------------------");
        Menu m2 = new SubSurfMenu(49,20);
        m2.show();
        System.out.println("-----------------------------------------------------------------");
        CallService cs = new SubCallMenu();
        cs.callService(200,PhoneCardType.SMALL_CARD);
        System.out.println("-----------------------------------------------------------------");
        SurfService ss = new SubSurfMenu();
        ss.surfService(20,PhoneCardType.BIG_CARD);
    }
}
